﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Interface_Practice_12Feb
{
    class Worker
    {
        private List<IExecutable> innerList;
        public Worker(List<IExecutable> list)
        {
            this.innerList = list;
        }
        public void Run()
        {
            foreach (var item in innerList)
            {
                item.Execute();
            }
        }

    }
}
